All Questions
Tagged with postgresqldocker
19 questions
1vote
1answer
23views
How to replace source list in old postgres:9 image before effectively run apt-get update
I would like to install java in final dockerfile stage from postgres:9, and I have to change following outdated addresses: RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list RUN ...
0votes
1answer
1kviews
Trying to install postgresql16-client on an Alpine Docker Container
I'm trying to create a Docker container with postgresql16-client but i'm getting an error saying that the package does not exist. I'm going to also install dotnet 8 on this container in order to run ...
0votes
0answers
417views
How was my postgres docker container hacked / infected
My VPS have been infected by the kdevtmpfsi malware, twice. That's the problem, because I've taken every possible precaution after being infected for the first time, and I have no idea how I'm being ...
0votes
3answers
300views
Tracking the source of PostgreSQL authentication failures in Linux Localhost
I have these logs in my PostgreSQL database log file that appeared after I changed the database password. 2023-09-14 11:57:15.937 UTC [3401773] username@db-name FATAL: password authentication failed ...
1vote
0answers
227views
psql asks for a password when username in host and postgres server are identical?
I have a postgres server running in a docker container. I added a user there named "myuser". I also have a linux user named "myuser". Then (as root) I do: $ su - myser $ psql ...
0votes
1answer
115views
how to execute a command in a running command in bash
how to execute this commands in bash script #!/bin/bash docker exec -ti test psql db db drop schema if exists stack cascade; delete from partman.part_config; \q pwd cd /folder/name
0votes
1answer
3kviews
E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04
I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
0votes
0answers
2kviews
Connecting to postgresql docker (Cannot connect from host)
Previously it was ok/works normally, but suddenly it didn't work, these docker spawned using library github.com/ory/dockertest with port 49157/tcp forwarded to 5432: docker ps CONTAINER ID IMAGE ...
0votes
0answers
64views
How to make sure two people are present when accessing a database on a server
My friends and I have a Mattermost instance up on a server through this set up. Mattermost does not support e2e encryption and we have a container with a Postgres database running that stores all of ...
1vote
1answer
2kviews
psycopg2.OperationalError: could not connect to server: No route to host Is the server running on host "db" and accepting TCP/IP connections on port
Following the instructions here was fine on openSUSE Tumbleweed with Docker version 20.10.6-ce, build 8728dd246c3a https://github.com/mirumee/saleor-platform#how-to-run-it But on openSUSE Leap 15.3 ...
0votes
2answers
2kviews
Creation of postgresql table on docker run
I want to create a Dockerfile that runs a PostgreSQL database when I run that container. So what I did was making a Dockerfile: FROM postgres:latest COPY *.sh /docker-entrypoint-initdb.d/ The ...
2votes
1answer
22kviews
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432
Im trying to connect to a Postgres database within a Ruby/Docker container with; docker-compose run app rails db:setup only my stack trace reports;- Starting reptrax-uk_postgres_1 ... done could not ...
1vote
1answer
10kviews
Can't install postgresql ver. 11 client on RHEL7
My system on server is: $ lsb_release -d Description: Red Hat Enterprise Linux Server release 7.5 (Maipo) Generally I have a Dockerized running postgres:11 database on this server and roughly ...
9votes
2answers
67kviews
Why can't I connect to Postgres in Docker?
I used docker-compose from the Openpoiservice project. Both Docker containers were launched successfully. kshnkvn@kshnkvn-vb:~$ docker ps CONTAINER ID IMAGE COMMAND ...
0votes
0answers
329views
Connect docker-container with other container by unit-socket
I'am trying to connect to containers by unit-socket/ docker run -d -v /var/lib/docker/overlay/[container_id]/var/run/postgresql/.s.PGSQL.5432:/socket_volume/.s.PGSQL.5432 -p 50000:8080 my_repo/...